home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #12 / Amiga Plus CD - 2002 - No. 12.iso / Tools / Development / source-highlight-1.6.1 / tests / test_template.cc < prev    next >
C/C++ Source or Header  |  2002-11-17  |  318b  |  15 lines

  1. // Test for templates (probably won't compile with C++ :-)
  2.  
  3. #include "map"
  4. #include <vector.h>
  5. #include <algorithm>
  6.  
  7. int i = j<k && j>d
  8.  
  9. template <typename First,
  10.           typename Second,
  11.           typename CompareFirst = std::less<First>,
  12.           typename CompareSecond = std::less<Second> >
  13.  
  14. Foo foo<class Test>
  15.